<!-- this.$emit用于子组件向父组件传递自定义事件 -->
<template>
  <div class="father">

    <h3>父组件，</h3>
    <h4>我的车：{{ car }}</h4>
    <Child v-model:car="car"></Child>
  </div>
</template>

<script setup lang="ts" name="Father">
import Child from './Child2.vue'
import { ref } from 'vue'
// 数据
const car = ref('奔驰')
</script>
